package com.example.producer.config;

import com.example.producer.comm.RabbitConstant;
import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @description rpc模式
 * @author shiguorang
 * @date 2023/6/29 14:28:29
 * @version 1.0
 */
@Configuration
public class RabbitRpcProvider {

    @Bean
    public Queue rpcQueue() {
        return new Queue(RabbitConstant.RPC_QUEUE_NAME);
    }


}
